package com.nas.crocus.controller;

import java.util.Collection;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.nas.crocus.dto.ItemDto;

@Controller
@RequestMapping(value = "/rubra.init")
public class RubraPageController {

    @Resource(name="menu")
    private Collection<ItemDto> menu;
    
    @RequestMapping(method = RequestMethod.GET)
    public String eventos(Model model) {
        model.addAttribute("menu", menu);
        return "inicio";
    }
}
